package com.han.yrpc.core.provider;

import com.han.yrpc.core.runtime.YrpcServer;

public abstract class AbstractYrpcServer implements YrpcServer {

    private final ServiceCache serviceCache;

    public AbstractYrpcServer(ServiceCache serviceCache) {
        this.serviceCache = serviceCache;
    }

    public Object getServiceImpl(String serviceName) {
        return this.serviceCache.getService(serviceName);
    }


}
